package com.ctsi.organise.common.constant;

/**
 * @author zhangjw
 */

public enum AccountStatus {
    NORMAL("normal","正常"),
    //不允许登陆，解锁才可以登陆
    LOCK("lock","锁定"),
    //无法登陆，用户禁用
    DISABLE("disable","禁用"),
    //标记删除，无法登陆
    DELETE("delete","已删除"),
    //允许登陆，登陆成功以后必须重置密码
    NEEDCHANGEPWD("needchangepwd","需更改密码"),
    //不允许登陆，认证激活（设置密码）以后才可以登陆
    NEEDENABLE("needenable","待激活");


    public String value;
    public String name;

    AccountStatus(String value, String name){
        this.value = value;
        this.name = name;
    }
    public static AccountStatus getAccountStatus(String value){
        for (AccountStatus partyType : values()) {
            if (value.equals(partyType.value)) {
                return partyType;
            }
        }
        return null;
    }

}
